<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script> 
        let params = location.href.split("?")[1].split("&");
        var obj = {};
        params.map(v => (obj[v.split("=")[0]] = v.split("=")[1]));
        let router_path = obj.router_path;
        delete obj.router_path;
        let other = ""
        Object.keys(obj).map(function(item){
            other += (!other ? "?" : "&" ) + item + "=" + obj[item]
        }) 
        location.href = location.href.split("redirect.html")[0] + "index.html#/" + router_path + other 
    </script>
</body>

</html>